public class Test3 {
    public static void main(String[] args) {
        int sum = 0;
        for(int i = 2; i <= 20; i+= 2){
            sum += i;
        }
        System.out.println(sum);
    }

    public static void main3(String[] args) {
        int sum = 0;
        for(int i = 1; i <= 10; i++) {
            int num = 1;
            for(int j = 1; j <= i; j++) {
                num *= j;
            }
            sum += num;
        }
        System.out.println(sum);
    }

    public static void main2(String[] args) {
        int cnt = 0;
        for(int i = 1000; i != 0; i = i / 2){
            cnt ++;
        }
        System.out.println(cnt);
    }

    public static void main1(String[] args) {
        for (int i = 1; i <= 10; i++) {
            System.out.println(i);
        }
    }
}
